package com.lzj.server.constant.properties;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author Lzj
 * @date 2025/4/28
 * @description OSS配置类
 */
@Data
@Component
@ConfigurationProperties(prefix = "oss")
@PropertySource("classpath:application.yml")
public class OssProperties {
    @Value("${oss.endpoint}")
    private String endpoint;
    @Value("${oss.accessKey}")
    private String accessKey;
    @Value("${oss.secretKey}")
    private String secretKey;
    @Value("${oss.bucketName}")
    private String bucketName;
}
